package com.yudaxian.sys.service.impl;

import com.yudaxian.sys.entity.ModelSensor;
import com.yudaxian.sys.mapper.ModelSensorMapper;
import com.yudaxian.sys.service.IModelSensorService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yudaxian
 * @since 2023-12-05
 */
@Service
public class ModelSensorServiceImpl extends ServiceImpl<ModelSensorMapper, ModelSensor> implements IModelSensorService {



    @Override
    public ModelSensor getModelSensorById(Integer id) {
        return this.baseMapper.selectById(id);
    }

    @Override
    public void addModelSensor(ModelSensor modelSensor) {
        this.baseMapper.insert(modelSensor);
    }

    @Override
    public void updateModelSensor(ModelSensor modelSensor) {
        this.baseMapper.updateById(modelSensor);
    }

    @Override
    public void deleteModelSensorById(Integer id) {
        this.baseMapper.deleteById(id);
    }
    
}
